﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.Web.Goods
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					Guid GoodsID=new Guid(strid);
					ShowInfo(GoodsID);
				}
			}
		}
		
	private void ShowInfo(Guid GoodsID)
	{
		Things.BLL.Goods bll=new Things.BLL.Goods();
		Things.Model.Goods model=bll.GetModel(GoodsID);
		this.lblGoodsID.Text=model.GoodsID.ToString();
		this.lblProductID.Text=model.ProductID.ToString();
		this.lblDescription.Text=model.Description;
		this.lblShelfLife.Text=model.ShelfLife;
		this.lblType.Text=model.Type;
		this.lblPrice.Text=model.Price.ToString();
		this.lblCropsName.Text=model.CropsName;
		this.lblCropsAddress.Text=model.CropsAddress;
		this.lblCount.Text=model.Count.ToString();
		this.lblIsDeleted.Text=model.IsDeleted?"是":"否";
		this.lblGoodsName.Text=model.GoodsName;
		this.lblGoodsBrand.Text=model.GoodsBrand;
		this.lblGoodsWeight.Text=model.GoodsWeight;
		this.lblGoodsPackage.Text=model.GoodsPackage;
		this.lblGoodsCategoryID.Text=model.GoodsCategoryID.ToString();
		this.lblGoodsImage.Text=model.GoodsImage.ToString();
		this.lblGoodsImageURL.Text=model.GoodsImageURL;

	}


    }
}
